﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using appladen.contracts;
using System.Diagnostics;
using appladen.contracts.data;

namespace appladen.csvwerk
{
    public class Daten_zerlegen : IDaten_zerlegen
    {
        public void Process(IEnumerable<string> message)
        {
            Trace.TraceInformation("Daten_zerlegen.Process");

            Result(message.Select(s => new CSVZeile() { Werte = s.Split(';') }));
        }

        public event Action<IEnumerable<contracts.data.CSVZeile>> Result = delegate { };
    }
}
